Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use withr::with_seed() in random_id() #1916

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

seb09
Copy link

@seb09 seb09 commented Nov 3, 2024

Addition or change of position of a gt should not change the state of the random number generator in the global environment. Fixes #1915

Summary

Thank you for contributing to gt! To make this process easier for everyone, please explain the context and purpose of your contribution. Also, list the changes made to the existing code or documentation.

Related GitHub Issues and PRs

Checklist

seb09 added 2 commits November 3, 2024 22:48
Addition or change of position of a `gt` should not change the seed of the random number generator in the global environment. Fixes rstudio#1915
@CLAassistant
Copy link

CLAassistant commented Nov 3, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gt() can affect results of operations that are based on random number generation
2 participants